package main

import "fmt"

func main() {
	var bonus, sum_bonus float64
	fmt.Println("请输入利润金额：")
	fmt.Scanf("%f", &bonus)
	switch{
	case bonus <= 100000:
		sum_bonus = bonus*0.1
	case bonus <= 200000:
		sum_bonus = 100000*0.1+(bonus-100000)*0.075
	case bonus <= 400000:
		sum_bonus = 100000*0.1+100000*0.075+(bonus-200000)*0.05
	case bonus <= 600000:
		sum_bonus = 100000*0.1+100000*0.075+200000*0.05+(bonus-400000)*0.03
	case bonus <= 1000000:
		sum_bonus = 100000*0.1+100000*0.075+200000*0.05+200000*0.03+(bonus-600000)*0.015
	default:
		sum_bonus = 100000*0.1+100000*0.075+200000*0.05+200000*0.03+200000*0.015+(bonus-800000)*0.01
	}
	fmt.Println(sum_bonus)
}
